package work05;

/**
 * @author ybb
 * 设计并创建一个课程类，生成2个课程对象，并调用其相应方法
 */
public class Course {
    String courseName;
    int credit;

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    void output(){
        System.out.println("课程名："+courseName);
        System.out.println("课程学分："+credit);
    }


}
